@header0: header0;
@menuHeight: 72px;
@mobileIconHeight: 14px;
@menuItemHeight: 40px;
.@{header0} {
  // background: @template-nav-bg-color;
  backdrop-filter: blur(10px);
  width: 100%;
  z-index: 1;
  height: @menuHeight;
  box-shadow: inset 0px -1px 0px 0px rgba(255,255,255,0.15);
  box-shadow: 0 5px 8px fade(#000, 15);
  border-bottom: 1px solid rgba(135, 135, 135, 25%);
  position: absolute;
  top: 0;
  //filter: blur(1px);

  .ant-menu.ant-menu-dark {
    background: transparent;
    .ant-menu-item-selected,
    .ant-menu-submenu-selected {
      background-color: transparent;
    }
  }
  .ant-menu-dark .ant-menu-item > span > a,
  .ant-menu-dark .header0-item-block {
    color: #fff;
    font-family: PingFangSC-Medium;
    font-size: 16px;
    letter-spacing: 0;
    font-weight: 500;
  }

  .home-page {
    padding: 0px 60px 0px 60px;
    display: flex;
    height: 100%;
  }

  .header-title {
    font-family: FZLTTHK--GBK1-0;
    font-size: 27px;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 800;
  }
  &-mobile-menu {
    display: none;
  }
  &-logo {
    display: inline-block;
    position: relative;
    line-height: @menuHeight;
    .pic {
      width: 230px;
      margin-right: 20px;
    }
    & img {
      vertical-align: middle;
      display: inline-block;
    }

    & a {
      display: block;
    }
  }
  
  &-menu {
    padding-left: 80px;
    display: flex;
    align-items: center;
    opacity: 1;
    .ant-menu {
      // line-height: @menuHeight;
      // height: 50px;

      a {
        display: block;
      }
    }
  }

  &-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .ant-btn-primary {
      width: 96px;
      height: 36px;
      border-radius: 2px;
      margin-left: 16px;
      font-size: 16px;
    }
  }
  
  &-item {
    &-block {
      padding: 0 8px;
      color: #fff !important;
      >* {
        display: inline-block;
      }
    }
  }

  &-item,
  &-item-child,
  &-menu {
    .ant-menu-item,
    .ant-menu-submenu {
      display: flex;
      align-items: center;
      padding: 0;
      // margin: 0 20px;
      transition: none;
      &:hover {
        background-color: transparent !important;
      }
    }
    // .ant-menu-sub .ant-menu-item,
    // .ant-menu-inline .ant-menu-item {
    //   height: auto;
    //   line-height: 1.5;
      
    // }

    // .item-sub {
    //   height: 40px;
    //   line-height: 40px;
    // }
    .item {
      &-sub-item {
        display: block;
        padding: 8px 24px;
      }

      &-image {
        float: left;
        margin-right: 16px;
        margin-top: 4px;
        position: relative;
        z-index: 1;
      }

      &-title {
        font-size: 14px;
        color: #fff;
        margin-left: 46px;
      }

      &-content {
        font-size: 12px;
        color: fade(#fff, 75);
        margin-left: 46px;
      }
    }
  }
  .phone-apply-button {
    display: none;
  }
}
.menu-icon-container {
  display: flex;
  &.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .svg-icon {
    padding-right: 5px;
    svg {
      width: 17px;
      path {
        fill: #fff;
      }
    }
  }
}
@media screen and (min-width: 1100px) {
  .@{header0} {
    .ant-menu.ant-menu-dark {
      .ant-menu-item-selected,
      .ant-menu-submenu-selected {
        border-bottom: 3px solid #3954FF;
      }
    }
    .ant-menu-item, .ant-menu-submenu {
      padding: 0 !important;
      margin: 0 20px;
    }
  }
  .menu-icon-container {
    height: @menuItemHeight;
  }
}

@media screen and (max-width: 1100px) {
  @menuHeight: 52px;
  .@{header0} {
    height: @menuHeight;
    &.home-page-wrapper .home-page {
      padding: 0 24px;
      display: block;
    }

    &-logo {
      line-height: @menuHeight;
      .pic {
        width: 170px;
      }
    }

    &-button {
      display: none;
    }

    &-menu {
      height: auto;
      float: inherit;
      position: relative;
      left: -24px;
      width: ~"calc(100% + 48px)";
      opacity: 0;
      transition: opacity .3s @ease-in-out;
      backdrop-filter: blur(10px);
      padding-left: 0px;
      // background-image: linear-gradient(269deg, #050D22 1%, rgba(12,25,53,0.33) 35%, #051532 100%);
      background-color: #0A1538;

      // .ant-menu-item,
      // .ant-menu-submenu {
      //   margin: 0;
      // }
      .ant-menu-inline .ant-menu-item,
      .ant-menu-inline .ant-menu-submenu-title {
        margin: 0;
      }

      .ant-menu-dark .ant-menu-inline.ant-menu-sub {
        background: transparent;
      }

      .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
        height: 55px;
        line-height: 55px;
      }

      .ant-menu-sub .ant-menu-item,
      .ant-menu-inline .ant-menu-item,
      .ant-menu-item-selected,
      .ant-menu-submenu-title {
        border-bottom: 1px solid rgba(226,230,236,0.22);
        height: 55px;
        line-height: 55px;
      }

      .ant-menu-submenu {
        display: block;
      }

      // & li {
      //   padding: 0 24px;

      //   &.ant-menu-submenu {
      //     padding: 0;
      //   }
      // }
      // .item {
      //   &-sub-item {
      //     padding: 8px 0;
      //   }
      // }
    }
    .phone-apply-button {
      height: @menuHeight;
      width: 100px;
      background-color: #3954FF;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      font-size: 13px;
      position: absolute;
      top: 0;
      right: 60px;
    }


    &-mobile-menu {
      width: 16px;
      height: @mobileIconHeight;
      cursor: pointer;
      position: absolute;
      top: (@menuHeight - @mobileIconHeight)/2;
      right: 24px;
      z-index: 100;
      display: block;

      em {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin-top: 4px;
        transition: transform .3s @ease-in-out, opacity .3s @ease-in-out;
      }

      :first-child {
        margin-top: 0;
      }
    }

    .ant-menu {
      height: auto;
      overflow: hidden;
      backdrop-filter: blur(10px);
    }

    & .open {
      height: auto;
      .@{header0}-mobile-menu {
        em {
          &:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
          }

          &:nth-child(2) {
            opacity: 0;
          }

          &:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
          }
        }
      }

      >.@{header0}-menu {
        opacity: 1;
        pointer-events: auto;
      }
    }
    
  }
}
